﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using DingApi.Models;


using System.Web;
using Dingding.Helper;



namespace DingApi.Controllers
{
    public class TingUserController : ApiController
    {


        public Object GetAllTingUser()
        {
            string str = "0d3eb767bcc231d7ba89ae179d542a67";

            var Obj = myDDDev.DingDingHelper.GetUserInfo2(str);
            return Obj;
        }

        public Object GetTingUserById(string id)
        {

            //var Obj = myDDDev.DingDingHelper.GetUserInfo2(id);
            return "GetTingUserById";
        }
        
        public  Object PostTingUser()
        {
           // EI.EIInfo inBlock = new EI.EIInfo();

            return "PostTingUser _ALL";
           
        }

        public Object PostTingUserById(string id)
        {
            var Obj = myDDDev.DingDingHelper.GetUserInfo2(id);
            return Obj;
        }

    }
}